package com.sskj.postar.dto;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;
@Data
public class RegisterDto {
    @NotEmpty(message = "账号不能为空")
    private String account;
    @NotEmpty(message = "密码不能为空")
    @Length(min = 8, max = 20, message = "密码的长度为8~20")
    private String pws;
    @NotEmpty(message = "验证码不能为空")
    private String code;
    private String inviteCode;
}
